home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 20
/
Cream of the Crop 20 (Terry Blount) (1996).iso
/
program
/
vol15n11.zip
/
HKD.ZIP
/
HKDSRC.ZIP
/
HKDPDLG.CPP
< prev
next >
Wrap
C/C++ Source or Header
|
1996-03-24
|
2KB
|
67 lines
// HKDPointDlg.cpp : implementation file
//
// HotKey Detective version 1.0
// Copyright (c) 1996 Ziff-Davis Publishing
// First published in PC Magazine June 11, 1996
// Author: Gregory A. Wolking
#include "stdafx.h"
#include "HKD.h"
#include "HKDpDlg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CHKDPointDlg dialog
CHKDPointDlg::CHKDPointDlg(CWnd* pParent /*=NULL*/)
: CDialog(CHKDPointDlg::IDD, pParent)
{
//{{AFX_DATA_INIT(CHKDPointDlg)
//}}AFX_DATA_INIT
}
void CHKDPointDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CHKDPointDlg)
DDX_Control(pDX, lstPoints, m_lstPoints);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CHKDPointDlg, CDialog)
//{{AFX_MSG_MAP(CHKDPointDlg)
ON_CBN_SELCHANGE(lstPoints, OnSelchangelstPoints)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
// All code prior to this was generated by the App Wizard.
/////////////////////////////////////////////////////////////////////////////
// CHKDPointDlg message handlers
BOOL CHKDPointDlg::OnInitDialog()
{
CDialog::OnInitDialog();
// Set default selection.
m_PointSize = 10;
// Note: Combo box list entries are set at design time.
m_lstPoints.SetCurSel(1);
return TRUE;
}
// Set m_PointSize based on which list item was selected.
void CHKDPointDlg::OnSelchangelstPoints()
{
CString sel;
m_lstPoints.GetLBText(m_lstPoints.GetCurSel(), sel);
sscanf(sel, "%u", &m_PointSize);
}